package com.yunxin.core.infra.persistence.mapper.page;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.yunxin.core.infra.persistence.entity.page.PagePopupUserRecordDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author zero°
 * @since 2023-12-07
 */
@DS("core")
@Mapper
public interface PagePopupUserRecordExtendMapper extends PagePopupUserRecordMapper {

    /**
     * 根据用户code和元素弹窗code查询弹窗用户记录
     * @param userCode userCode
     * @param elementCode elementCode
     * @return PagePopupUserRecordDO
     */
    PagePopupUserRecordDO selectByUserCodeAndElementCode(@Param("userCode")String userCode,
                                                         @Param("elementCode") String elementCode);

}